package day11;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class Kezhouqiujian {
    //static Class class/
    public static void main(String[] args) throws  Exception {
        BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream("D:\\Documents\\桌面\\exe\\3-java-advance\\chaoxian.txt"),"gbk"));
        String str=null;
        //System.out.println(br.markSupported());
        System.out.println(br.readLine());
        System.out.println(br.readLine());
        System.out.println(br.readLine());
        br.mark(3000);//往后300个字符内，mark标记有效。。。
        while (( str=br.readLine())!=null){
            System.out.println(str);
        }
        br.reset();//回到300那个地方
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>");
        while (( str=br.readLine())!=null){
            System.out.println(str);
        }
        br.close();
    }
}
